unit u_pesquisatipodocumento;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, u_pesquisapadrao, FMTBcd, DB, DBClient, Provider, SqlExpr,
  ExtCtrls, AdvGlowButton, StdCtrls, Grids, DBGrids, JvExDBGrids, JvDBGrid,
  AdvEdit, AdvGroupBox;

type
  TFRM_PesquisaTipoDocumento = class(TFRM_PesquisaPadrao)
    cdsPesquisarCOD_DOCUMENTO: TIntegerField;
    cdsPesquisarDESCRICAO: TStringField;
    cdsPesquisarABREVIACAO: TStringField;
    cdsPesquisarTIPO_TRANSACAO: TStringField;
    procedure edtPesquisarKeyDown(Sender: TObject; var Key: Word;
      Shift: TShiftState);
    procedure FormShow(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FRM_PesquisaTipoDocumento: TFRM_PesquisaTipoDocumento;

implementation

{$R *.dfm}

procedure TFRM_PesquisaTipoDocumento.edtPesquisarKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
  inherited;
  cdsPesquisar.Locate('descricao',edtPesquisar.Text,[loPartialKey,loCaseInsensitive]);
end;

procedure TFRM_PesquisaTipoDocumento.FormShow(Sender: TObject);
begin
  inherited;
  lblTotal.Caption := lblTotal.Caption + ' formas ativas';
end;

end.
